<template>
  <div>
    <el-table :data="tableData" height="500" border>
      <el-table-column width="30"> </el-table-column>
      <el-table-column prop="id" label="编号" height="20" width="50">
      </el-table-column>
      <el-table-column prop="name" label="名称" height="20"> </el-table-column>
      <el-table-column prop="jianjie" label="简介" height="20">
      </el-table-column>
      <el-table-column label="操作" width="200">
        <el-button>编辑</el-button><el-button type="danger">删除</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>

<script src="../../public/js/mock.js"></script>
<script>
const Mock = require('mockjs');
let adrdata = Mock.mock({
  'adrsAdmins|100': [
    {
      'id|+1': 1,
      name: '第@cword("一二三四五", 1)宿舍楼',
      jianjie: '这是@name("一二三四五", 1)，位于XXX',
      admin: '@cname@cname@cname'
    }
  ]
});
export default {
  name: 'DormManagement',
  data() {
    return {
      tableData: adrdata.adrsAdmins
    };
  }
};
</script>

<style>
.el-table {
  line-height: 30px;
}
</style>
